package com.hxzy.mapstruct;

import com.hxzy.controller.admin.employee.req.EmployeeEditReq;
import com.hxzy.controller.admin.employee.resp.EmployeeEditResp;
import com.hxzy.entity.Employee;
import org.mapstruct.Mapper;

/**
 * 功能描述
 *
 * @author tonneyyy
 */
@Mapper
public interface EmployeeMapStruct {

    /**
     * 实例化对象(单例)
     */
    EmployeeMapStruct INSTANCE = org.mapstruct.factory.Mappers.getMapper(EmployeeMapStruct.class);


    /**
     *  把数据库实体类转换为自定义对象
     * @param db
     * @return
     */
    EmployeeEditResp convert(Employee db);

    Employee convert(EmployeeEditReq req);

}
